package com.xingkeduo.pojo.query;

import com.xingkeduo.pojo.table.CraftsmanTO.Status;
import com.xingkeduo.util.pojo.base.BaseQuery;
import com.xingkeduo.util.pojo.enums.YesNoEnum;
import org.apache.ibatis.type.Alias;

import java.util.List;
import java.util.Set;

/**
 * 一线员工账户查询类
 *
 * @author 高杰
 * @time 2018年12月24日 下午3:54:32
 * @description
 */
@Alias("CraftsmanQO")
public class CraftsmanQO extends BaseQuery<CraftsmanQO> {
    private String login;

    private long code;

    private String password;
    private Status status;
    private List<Long> ids;

    private String newPassWord;

    private Integer registerStep;

    private String newLogin;

    private YesNoEnum isDelete;

    private Set<Status> statuss;

    private String msgCode;

    private Status leaveStatus;

    public Status getLeaveStatus() {
        return leaveStatus;
    }

    public CraftsmanQO setLeaveStatus(Status leaveStatus) {
        this.leaveStatus = leaveStatus;
        return this;
    }

    public String getMsgCode() {
        return msgCode;
    }

    public CraftsmanQO setMsgCode(String msgCode) {
        this.msgCode = msgCode;
        return this;
    }

    public Set<Status> getStatuss() {
        return statuss;
    }

    public CraftsmanQO setStatuss(Set<Status> statuss) {
        this.statuss = statuss;
        return this;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public CraftsmanQO setCode(long code) {
        this.code = code;
        return this;
    }

    public YesNoEnum getIsDelete() {
        return isDelete;
    }

    public CraftsmanQO setIsDelete(YesNoEnum isDelete) {
        this.isDelete = isDelete;
        return this;
    }

    public String getNewLogin() {
        return newLogin;
    }

    public CraftsmanQO setNewLogin(String newLogin) {
        this.newLogin = newLogin;
        return this;
    }

    public Integer getRegisterStep() {
        return registerStep;
    }

    public CraftsmanQO setRegisterStep(Integer registerStep) {
        this.registerStep = registerStep;
        return this;
    }

    public String getNewPassWord() {
        return newPassWord;
    }

    public void setNewPassWord(String newPassWord) {
        this.newPassWord = newPassWord;
    }

    public String getLogin() {
        return login;
    }

    public CraftsmanQO setLogin(String login) {
        this.login = login;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public CraftsmanQO setPassword(String password) {
        this.password = password;
        return this;
    }

    public Status getStatus() {
        return status;
    }

    public CraftsmanQO setStatus(Status status) {
        this.status = status;
        return this;
    }

    public List<Long> getIds() {
        return ids;
    }

    public CraftsmanQO setIds(List<Long> ids) {
        this.ids = ids;
        return this;
    }

    public boolean isEmpty() {
        if (!isSuperEmpty() || login != null)
            return false;

        return true;
    }


    @Override
    public String toString() {
        return "CraftsmanQO{" +
                "login='" + login + '\'' +
                ", password='" + password + '\'' +
                ", status=" + status +
                ", ids=" + ids +
                ", newPassWord='" + newPassWord + '\'' +
                ", registerStep=" + registerStep +
                ", newLogin='" + newLogin + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }
}
